package com.dd.census.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dd.census.entity.SysUserRole;
import com.dd.census.mapper.SysUserRoleMapper;
import com.dd.census.service.SysUserRoleService;

@Service
public class SysUserRoleServiceImpl implements SysUserRoleService {

	@Autowired
	private SysUserRoleMapper sysUserRoleMapper;
	
	public Map<String, Object> selectByRoleId(SysUserRole sysUserRole) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("items", sysUserRoleMapper.selectByRoleId(sysUserRole));
		return map;
	}

}
